import { IFeidaoAiAliappPage, IFeidaoAiBrowserComponent, IFeidaoAiNodejsComponent, IFeidaoAiWeappPage } from '../../interfaces';
/**
 * 获取url和节点data-feidao-props属性上的参数
 * @param fd 固定参数
 * @param key 键
 */
export default function get<T>(fd: IFeidaoAiAliappPage | IFeidaoAiBrowserComponent | IFeidaoAiNodejsComponent | IFeidaoAiWeappPage, key: string) {
	const params = fd.data.params;
	return params && params[key] as T;
}
